home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 6 / The Arsenal Files 6 (Arsenal Computer).ISO / internet / ncftp2b9.zip / NCFTP.INF (.txt) < prev    next >
OS/2 Help File  |  1996-02-17  |  72KB  |  2,134 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Introduction ΓòÉΓòÉΓòÉ
  3.  
  4. NcFTP is a user interface to the Internet standard File Transfer Protocol. This 
  5. program allows a user to transfer files to and from a remote network site, and 
  6. offers additional features that are not found in the standard interface, ftp. 
  7.  
  8. The program runs in one of three modes: visual mode, line mode and colon mode. 
  9.  
  10. If your system is somewhat modern, the default mode should be visual mode. This 
  11. is a full-screen interface that uses the curses library. 
  12.  
  13. With visual mode, you edit the program's settings with a nice screen interface 
  14. instead of typing arcane commands. 
  15.  
  16. If you are not in visual mode, you will be using line mode for the interactive 
  17. shell. This mode is a no-frills command-line interface that will look like the 
  18. default ftp program's command shell. 
  19.  
  20. The third mode, colon mode, refers to the program's ability to do a quick 
  21. retrieve of a file directly from your shell command line, without going into 
  22. the program's own shell. This mode is useful for shell scripts. 
  23.  
  24. NcFTP v2.3.0 provides several enhancements over the standard ftp available with 
  25. IBM's TCP/IP and Warp's IAK. NcFTP offers serveral benefits and enhancements, 
  26. such as: 
  27.  
  28.      A progress indicator bar 
  29.  
  30.      Re-get support - The abilitity to automatically restart an aborted ftp 
  31.       transfer at the point where it left off. 
  32.  
  33.      Colon-mode, which allows you to quickly pick up a single file by typing a 
  34.       single command on the command line. 
  35.  
  36.      Recursive gets; Now you can retrieve entire sub-directory trees using the 
  37.       -r switch with the get command. 
  38.  
  39.      Get `newer than X-files'; This retrieves files that are newer than X 
  40.       days. 
  41.  
  42.      Get new files only; NcFTP now has the ability to skip files that you 
  43.       already have, making it easy to mirror other sites, or just pick up new 
  44.       files since your last ftp session. 
  45.  
  46.      Integrated hosts editor. 
  47.  
  48.  
  49. ΓòÉΓòÉΓòÉ 2. What's Different With This Port ΓòÉΓòÉΓòÉ
  50.  
  51. All features of the original UNIX version of NcFTP have been maintained, with 
  52. two exceptions: 
  53.  
  54.      SOCKS support has not been implemented (yet!). 
  55.  
  56.      NcFTP does not go into `silent mode' when in the o background. 
  57.  
  58.  All other features have been maintained. Also, there are some new features or 
  59.  enhancements with this port. Specifically they are: 
  60.  
  61.      FAT partition friendly, NcFTP will work equally as well o on FAT 
  62.       partititions as it will on HPFS partititions. 
  63.  
  64.      NcFTP will interpret / as \ for local system file names. 
  65.  
  66.      Background Paging. This feature was introduced by Steve Willer in the 
  67.       v1.9.3 port of NcFTP. This features gives you the ability to have your 
  68.       pager program start in a separate window. The window title bar will 
  69.       refect exactly what is being viewed. The specific commands are: 
  70.  
  71.         -  bpage 
  72.         -  bls 
  73.         -  bdir 
  74.         -  bredir 
  75.  
  76.      Complete control over the NcFTP's colors. There is now a Color 
  77.       Configuration screen which allows you to set your favorite colors. 
  78.  
  79.  Three new Global Preference Options are now available: 
  80.  
  81.      Maximum Redials Sets the maximum number of retries to connect to a busy 
  82.       system. Redial Delay Sets the delay between redials. Pager in new window 
  83.       All NcFTP pager related commands run in a separate window. 
  84.  
  85.      NcFTP for OS/2 no longer uses the `i.am.running' flag file to determine 
  86.       if other copies of NcFTP are running. It now uses OS/2 semaphores. This 
  87.       is a key feature incase NcFTP were to crash, it will not leave old files 
  88.       laying around. 
  89.  
  90.      NcFTP now clears the screen before calling a command shell. 
  91.  
  92.      The `ESCAPE' key will clear the input line, just like OS/2. 
  93.  
  94.      When writing files to a FAT partition, NcFTP will set the extended 
  95.       attribute .LONGNAME to the actual file name. 
  96.  
  97.  
  98. ΓòÉΓòÉΓòÉ 3. Differences Between NcFTP v.1.9.3 ΓòÉΓòÉΓòÉ
  99.  
  100. Differences between NcFTP v1.9.3 and NcFTP v2.3.0 
  101.  
  102.      Using "colon-mode" never enters the shell.  Whenever you use it, the 
  103.       program will do it's thing, and exit. 
  104.  
  105.      You don't get the fancy prompts anymore when using "line" mode (i.e. you 
  106.       turned off visual mode by running with "ncftp -L"). 
  107.  
  108.      When in visual mode, you can't use GNU Readline or Getline.  You can use 
  109.       them if not in visual mode though.  In visual mode, you get to use my 
  110.       homegrown line editor/history.  It lets you scroll through the history, 
  111.       and use some simple editing commands. 
  112.  
  113.      "get"/"put" always behaves like "mget"/"mput." 
  114.  
  115.      There is no .netrc file.  You do get a ~/.ncftp directory, and in it you 
  116.       get files called "hosts" and "prefs."  You can also put your "macros" 
  117.       file there, and if you have logging turned on, a file called "log" is 
  118.       stored there. 
  119.  
  120.      For "macdef init" macros, you need to put them in your "macros" file 
  121.       named as ".open.<sitename>.  So for an init macro for wuarchive, you 
  122.       would use a macro named ".open.wuarchive" instead. 
  123.  
  124.      Other commands previously supported for backwards compatibility with 
  125.       "ftp" are gone.  So are some other less useful commands. 
  126.  
  127.      The gateway hack has been removed.  You'll have to use SOCKS. Which has 
  128.       not been implemented in the OS/2 port (yet!). 
  129.  
  130.      Hostname abbreviation rules have changed a bit.  NcFTP assigns a unique 
  131.       nickname to site the first time you open it (this nickname can be changed 
  132.       using the host editor if you don't like it).  When you try opening a 
  133.       site, you can either type it's full name again, or type it's nickname. 
  134.       You can abbreviate the nickname, but not other parts of the site name. 
  135.       For example, if you had an entry called "wuarchive.wustl.edu" in your 
  136.       host file with a nickname of "wuarchive," You could do "open wuarchive" 
  137.       or "open wuar" but "open wustl" would not.  This avoids the confusion 
  138.       between abbreviations and local network hosts. 
  139.  
  140.  
  141. ΓòÉΓòÉΓòÉ 4. Installation ΓòÉΓòÉΓòÉ
  142.  
  143.    1. Place NcFTP.exe in your path. 
  144.  
  145.    2. Be sure you have the latest version of emx's run-time libraries. NcFTP 
  146.       requres emx09b fix01 or later to run properly. If you have an older 
  147.       version of emx runtimes, you can get the latest from: 
  148.  
  149.          ftp://hobbes.nmsu.edu/os2/unix/emx09b/emxrt.zip 
  150.  
  151.    3. NcFTP also requires an external pager program that views text files from 
  152.       the remote host. By default, NcFTP uses the OS/2 more command, which is 
  153.       not very robust. I recommend you use less.exe. Less.exe has been ported 
  154.       from Unix and provides several enhancements over the more command. If you 
  155.       don't have less.exe or need a later version, you get the it from: 
  156.  
  157.          ftp://hobbes.nmsu.edu/os2/unix/less291.zip 
  158.  
  159.    4. The following environment variables are required for NcFTP to run 
  160.       properly: 
  161.  
  162.           HOME this points to your home directory. NcFTP will create a 
  163.            subdirectory under this directory called .ncftp (or _ncftp for FAT 
  164.            partitions). This is where NcFTP will store its configuration files. 
  165.           NCFTPDIR can be used inplace of the HOME environment variable if 
  166.            necessary. 
  167.           HOSTNAME If NcFTP is unable to resolve your hostname, set this 
  168.            environment variable. i.e.; 
  169.  
  170.               SET HOSTNAME=myhostname 
  171.  
  172.  
  173.           DOMAIN If NcFTP is unable to resolve your domain name, set this 
  174.            environment variable to your domain name: 
  175.  
  176.               SET DOMAIN=inetport.com 
  177.  
  178.  The first time you run NcFTP, issue the prefs command and setup your 
  179.  preferences. For more information on preference, see the PREFERENCES 
  180.  
  181.  
  182. ΓòÉΓòÉΓòÉ 5. Running NcFTP ΓòÉΓòÉΓòÉ
  183.  
  184. ncftp [program options] [[open options] hostname[:pathname]] 
  185.  
  186. OPTIONS: 
  187.  
  188.   Program options: 
  189.  
  190.  
  191.        -D   : Turn debug mode and trace mode on.
  192.        -L   : Don't use visual mode (use line mode).
  193.        -V   : Use visual mode.
  194.        -H   : Dump the version information.
  195.  
  196.    Command-line open options:
  197.  
  198.        -a   : Open anonymously.
  199.        -u   : Open with username and password prompt.
  200.        -p X : Use port number X when opening.
  201.        -r   : Redial until connected.
  202.        -d X : Redial, delaying X seconds between tries.
  203.        -g X : Give up after X redials without connection.
  204.  
  205.    Command-line retrieve options:
  206.  
  207.        -C   : Force continuation (reget).
  208.        -f   : Force overwrite.
  209.        -G   : Don't use wildcard matching.
  210.        -R   : Recursive. Useful for fetching whole directories.
  211.        -n X : Get selected files only if X days old or newer.
  212.  
  213.  
  214. ΓòÉΓòÉΓòÉ 6. Introduction to Visual Mode ΓòÉΓòÉΓòÉ
  215.  
  216. When entering visual mode, the screen clears and is rewritten with the splash 
  217. screen. You should see the black status bar occupying the second to last row on 
  218. the screen. Beneath the status bar is the input line, where you type commands 
  219. to the program's shell. 
  220.  
  221. The program then waits for you to do something. Usually this means you want to 
  222. open a remote filesystem to transfer files to and from your local machine's 
  223. filesystem. To do that, you need to know the symbolic name of the remote 
  224. system, or its Internet Protocol (IP) address. For example, a symbolic name 
  225. might be typhoon.unl.edu, and its IP address could be 129.93.33.24.  To open a 
  226. connection  to that system, you use the program's open command: 
  227.  
  228.      open typhoon.unl.edu
  229.      open 129.93.33.24
  230.  
  231. Both of these try to open the machine called typhoon at the University of 
  232. Nebraska. Using the symbolic name is the preferred way, because IP addresses 
  233. may change without notice, while the symbolic names usually stay the same. 
  234.  
  235. When you open a remote filesystem, you need to have permission. The FTP 
  236. Protocol's authentication system is very similar to that of logging in to your 
  237. account. You have to give an account name, and its password for access to that 
  238. account's files. However, most remote systems that have anything you might be 
  239. interested in don't require an account name for use. You can often get 
  240. anonymous access to a remote filesystem and exchange files that have been made 
  241. publicly accessible. The program attempts to get anonymous permission to a 
  242. remote system by default. What actually happens is that the program tries to 
  243. use anonymous as the account name, and when prompted for a password, uses your 
  244. E-mail address as a courtesy to the remote system's maintainer. You can have 
  245. the program try to use a specific account also. That will be explained later. 
  246.  
  247. If the connection succeeded, you should see the status bar change to hold the 
  248. remote system's name on one side, and the current remote directory on the other 
  249. side. To see what's in the current remote directory, you can use the program's 
  250. and ls dir commands. The former is terse, preferring more remote files in less 
  251. screen space, and the latter is more verbose, giving detailed information about 
  252. each item in the directory. 
  253.  
  254. You can use the program's cd command to move to other directories on the remote 
  255. system. The cd command behaves very much like the command of the same name in 
  256. the Bourne and Korn shell. 
  257.  
  258. The purpose of the program is to exchange data with other systems. You can use 
  259. the program's get command to copy a file from the remote system to your local 
  260. system: 
  261.  
  262.    get README.txt 
  263.  
  264. The program will display the progress of the transfer on the screen, so you can 
  265. tell how much needs to be done before the transfer finishes. When the transfer 
  266. does finish, then you can enter more commands to the program's command shell. 
  267.  
  268. You can use the program's put command to copy a file from your system to the 
  269. remote system: 
  270.  
  271.    put something.tar 
  272.  
  273. When you are finished using the remote system, you can open another one or use 
  274. the quit command to terminate the program. 
  275.  
  276.  
  277. ΓòÉΓòÉΓòÉ 7. The Bookmarks File ΓòÉΓòÉΓòÉ
  278.  
  279. One of the program's goals is to minimize typing and maximize convenience. The 
  280. program automatically saves information about the sites you call on in a 
  281. special file called the bookmarks file, which is stored in the subdirectory of 
  282. your home directory. .ncftp Each bookmark saves the host name along with other 
  283. settings, including the remote directory you were in, the account information, 
  284. and more. This makes it easy to call back a site later and have everything be 
  285. like it was when you left the last time. 
  286.  
  287. A big advantage of saving this information is that you can refer to a site by a 
  288. shorter, more meaningful name, instead of using the full symbolic host name for 
  289. a site. For example, if you called a site named typhoon.unl.edu frequently, its 
  290. bookmark name might be just typhoon. Then, instead of: 
  291.  
  292.    open typhoon.unl.edu 
  293.  
  294. you could use:    open typhoon 
  295.  
  296. You could also abbreviate the bookmark name further, as long as the program 
  297. will know which site you are referring to. If no other bookmark's name starts 
  298. with the letters ty, you could do just: 
  299.  
  300.    open ty 
  301.  
  302. Use the bookmarking feature to assign mnemonic names to hosts whose real names 
  303. don't give much hint to what you call there for. A popular game called Nethack 
  304. is archived at linc.cis.upenn.edu, in the /pub/NH3.1 directory. You could 
  305. assign nethack as the bookmark name for this site. Then you could try: 
  306.  
  307.    open nethack 
  308.  
  309. instead of: 
  310.  
  311.    open linc.cis.upenn.edu 
  312.  
  313.  
  314. ΓòÉΓòÉΓòÉ 8. Using The Bookmark Editor ΓòÉΓòÉΓòÉ
  315.  
  316. To manipulate the bookmarks stored in your bookmarks file, you use the 
  317. program's bookmark editor. Run the bookmark editor by typing the bookmarks 
  318. command from within the program. This brings up a new screen of information. On 
  319. the right side is the list of remote systems the program has saved for you 
  320. already. Each time you open a connection to a remote system, the program saves 
  321. an entry in your bookmark file for you automatically. If you have not opened 
  322. any sites successfully yet, this list would be empty. 
  323.  
  324. On the left side is some instructions saying what you can do with the list. The 
  325. bookmark editor is waiting for you to do something, like select a bookmark 
  326. whose settings you want to edit. 
  327.  
  328. Some bookmark editor hot key commands are one key only. You do not need to hit 
  329. enter after the hot key commands. To exit the bookmark editor for example, you 
  330. would just type the x key only. The multikey commands require a slash first and 
  331. do require the enter key. To delete the selected site, for example, you would 
  332. type the / key, then del, and then the enter key. 
  333.  
  334. You can use the d key to move down one line in the list, and the u key to move 
  335. up one line. If you have many entries in the bookmark list, you won't be able 
  336. to see them all at once. The bookmark list scrolls as appropriate to bring the 
  337. other sites into view. Use the p and n keys to move pages at a time. 
  338.  
  339. Another way to select a site in the bookmark list is to use the capital 
  340. letters. If you had many entries in my bookmark list, but wanted to select a 
  341. site whose bookmark name was nethack, you could type N and the list would zoom 
  342. to the first site with bookmark starting with the letter n. 
  343.  
  344. After you have hilited a bookmark you want to edit, use the /ed command. Doing 
  345. that brings up another screen with the settings for that bookmark. 
  346.  
  347. In the Bookmark Options screen, you use hot keys to select a setting to edit. 
  348. To edit the bookmark name, for example, you would type a. When you are finished 
  349. editing this bookmark, hit the x key to return to the bookmark editor's screen. 
  350.  
  351.  
  352. ΓòÉΓòÉΓòÉ 9. Bookmark Options ΓòÉΓòÉΓòÉ
  353.  
  354. Each remote site stored in your bookmarks file can have individual options 
  355. specified. 
  356.  
  357.       Bookmark Name 
  358.       Hostname 
  359.       User 
  360.       Password 
  361.       Account 
  362.       Directory 
  363.       Save Dir on Exit 
  364.       Transfer Type 
  365.       Port 
  366.       Has SIZE command 
  367.       Has MDTM command 
  368.       Can use passive FTP 
  369.       Operating System 
  370.       Comment 
  371.  
  372.  
  373. ΓòÉΓòÉΓòÉ 9.1. Bookmark Name ΓòÉΓòÉΓòÉ
  374.  
  375. Edit the Bookmark name field to change the name you use to open this site with. 
  376. Remember, when you change the bookmark name , you must use this name to refer 
  377. to this particular bookmark, so if you change it to foobar, you need to use 
  378. open foobar. This is required because you can have multiple entries for a 
  379. remote host. For example, you could have two bookmarks for wuarchive.wustl.edu, 
  380. named wumac and wuwindows. If you were to say open wuarchive.wustl.edu, it 
  381. would not be clear to the program which host entry to use. 
  382.  
  383.  
  384. ΓòÉΓòÉΓòÉ 9.2. Hostname ΓòÉΓòÉΓòÉ
  385.  
  386. Full hostname of the remote site.  You can also specify an IP address. 
  387.  
  388.  
  389. ΓòÉΓòÉΓòÉ 9.3. User ΓòÉΓòÉΓòÉ
  390.  
  391. Change the login information for the site by editing the User, Password, and 
  392. Account fields. Normally you would want to leave these as is for anonymous 
  393. logins. Depending on your situation, you might want to use a specific account 
  394. on the remote system. This is one way to get the program to use a non anonymous 
  395. login. 
  396.  
  397.  
  398. ΓòÉΓòÉΓòÉ 9.4. Password ΓòÉΓòÉΓòÉ
  399.  
  400. Password to use with this site.  By default, NcFTP will use the password 
  401. specified in the preferences file. 
  402.  
  403.  
  404. ΓòÉΓòÉΓòÉ 9.5. Account ΓòÉΓòÉΓòÉ
  405.  
  406. Specifies the account to use on the remote system. 
  407.  
  408.  
  409. ΓòÉΓòÉΓòÉ 9.6. Directory ΓòÉΓòÉΓòÉ
  410.  
  411. The Directory field specifies the directory to move to upon successful 
  412. connection to the remote host for this bookmark. When you close the site, this 
  413. field is updated for you automatically to be the directory you were in when you 
  414. closed the site. 
  415.  
  416.  
  417. ΓòÉΓòÉΓòÉ 9.7. Save Dir on Exit ΓòÉΓòÉΓòÉ
  418.  
  419. If this field is set to Yes NcFTP will save the current remote directory each 
  420. time you close the site. 
  421.  
  422.  
  423. ΓòÉΓòÉΓòÉ 9.8. Transfer type ΓòÉΓòÉΓòÉ
  424.  
  425. The Transfer Type field can be changed to use a different translation mode when 
  426. transferring files. This program is usually running on an OS/2 system, and most 
  427. remote systems are UNIX variants, so the default transfer type is, which does 
  428. no binary translation at all. 
  429.  
  430. However, when you need to work with plain text files and transfer them between 
  431. non-UNIX systems, you can change this to ASCII. That will guarantee that the 
  432. text-only files will translate correctly. Most often, you will need to use the 
  433. binary transfer type. 
  434.  
  435.  
  436. ΓòÉΓòÉΓòÉ 9.9. Port ΓòÉΓòÉΓòÉ
  437.  
  438. The Port field can be changed so that the program tries to use a non-standard 
  439. port number. I have yet to ever need a different port number, but this 
  440. capability is here in case it's needed. 
  441.  
  442.  
  443. ΓòÉΓòÉΓòÉ 9.10. Has SIZE command ΓòÉΓòÉΓòÉ
  444.  
  445. The Has SIZE Command field will probably not need to be edited. This field is 
  446. mostly for your information only. The SIZE command is an FTP Protocol command 
  447. that the program would like the remote server to support. If it is supported, 
  448. the program can get an exact number of bytes of remote files before 
  449. transferring. That is nice to know so the progress reports work better. 
  450.  
  451.  
  452. ΓòÉΓòÉΓòÉ 9.11. Has MDTM command ΓòÉΓòÉΓòÉ
  453.  
  454. The Has MDTM Command field will probably not need to be edited either. If the 
  455. remote server supports it, the program can get the exact modification date of 
  456. the remote file, and set the local file to the same date. 
  457.  
  458.  
  459. ΓòÉΓòÉΓòÉ 9.12. Can use passive FTP ΓòÉΓòÉΓòÉ
  460.  
  461. The Can Use Passive FTP field specifies whether the remote server allows use of 
  462. the FTP Protocol's PASV command. There are two ways to set up FTP connections. 
  463. The default way is what is  called Port FTP . Unfortunately, Port FTP cannot be 
  464. used when your local host is hiding behind a Firewall. Passive FTP can be used 
  465. with a firewall, and that's why I would like to use that method if possible. 
  466. You probably will not need to edit this field, since this can be detected 
  467. automatically most of the time. 
  468.  
  469.  
  470. ΓòÉΓòÉΓòÉ 9.13. Operating System ΓòÉΓòÉΓòÉ
  471.  
  472. The Operating System field is used by the program to tell if it can rely on 
  473. certain dependencies to specific operating systems. If the OS is a UNIX 
  474. variant, the program can make some assumptions about the remote server's 
  475. responses. For example, if the OS is UNIX, the ls command tries to use the 
  476. flags, like you could with -CF /bin/ls -CF on UNIX. If the OS wasn't UNIX, the 
  477. -CF might not make sense to the remote server and it might complain. You 
  478. probably will not need to edit this field, since this can be detected 
  479. automatically most of the time. 
  480.  
  481.  
  482. ΓòÉΓòÉΓòÉ 9.14. Comment ΓòÉΓòÉΓòÉ
  483.  
  484. The comment field can be used to store a brief description about the site. For 
  485. example, for my nethack entry, you could use this field to hold Archive site 
  486. for latest version of Nethack. When you are in the bookmark editor's window, if 
  487. you hilite a site that has a comment, it is printed at the bottom of the screen 
  488. so you do not have to edit the site to look at it. 
  489.  
  490.  
  491. ΓòÉΓòÉΓòÉ 10. Preferences ΓòÉΓòÉΓòÉ
  492.  
  493. In addition to remote-host specific options, the program has global options 
  494. that are user-configurable. To change the program's preferences, run the prefs 
  495. command from within the program. 
  496.  
  497.       Default Open Mode 
  498.       Anonymous Password 
  499.       Blank Lines Between Commands 
  500.       Default FTP mode 
  501.       User Log Size 
  502.       Max Bookmarks to Save 
  503.       Pager 
  504.       Progress Meter 
  505.       Remote Messages 
  506.       Startup in Local Dir 
  507.       Startup Messages 
  508.       Network Timeout 
  509.       Trace Logging 
  510.       File Timestamps 
  511.       Screen Graphics 
  512.       Redial Attempts 
  513.       Pause Between Redials 
  514.       Pager In Separate Window 
  515.  
  516.  
  517. ΓòÉΓòÉΓòÉ 10.1. Default Open Mode ΓòÉΓòÉΓòÉ
  518.  
  519. The Default open mode field specifies how the program should try to open 
  520. connections. If you do a lot of anonymous FTPing, you should leave this set to 
  521. anonymous. You might want to set this field to user and password if the hosts 
  522. you FTP to most often don't allow anonymous logins. For example, if you are 
  523. using the program on your company network to copy things from different company 
  524. machines, you would not want to use anonymous FTP mode. 
  525.  
  526.  
  527. ΓòÉΓòÉΓòÉ 10.2. Anonymous Password ΓòÉΓòÉΓòÉ
  528.  
  529. The Anonymous password field lets you change the value given to the remote host 
  530. when you use an anonymous login. It is customary (and sometimes required) to 
  531. use your e-mail address as the password for anonymous FTP, so the remote host's 
  532. administrator knows who is using the service. If the program didn't get your 
  533. e-mail address right, or you want to use something different, you can change it 
  534. here. 
  535.  
  536.  
  537. ΓòÉΓòÉΓòÉ 10.3. Blank Lines Between Cmds ΓòÉΓòÉΓòÉ
  538.  
  539. The program now uses more whitespace than before to reduce eyestrain. If you 
  540. prefer, you can turn off that feature by changing the Blank lines between cmds 
  541. field. 
  542.  
  543.  
  544. ΓòÉΓòÉΓòÉ 10.4. Default FTP Mode ΓòÉΓòÉΓòÉ
  545.  
  546. This option allows you to choose the default FTP mode. Normally you do not need 
  547. to change this value. 
  548.  
  549. If you are running behind a firewall or through a gateway, you may need to set 
  550. this option to the following: 
  551.  
  552.   Passive, but fall back to port if needed 
  553.  
  554.       or 
  555.  
  556.   Passive FTP only (PASV) 
  557.  
  558. Try the first option, if it does not work, try the second. 
  559.  
  560.  
  561. ΓòÉΓòÉΓòÉ 10.5. User Log Size ΓòÉΓòÉΓòÉ
  562.  
  563. The program can log the transfers you do to a file so you can refer to the log 
  564. if you can't remember where you got something. To turn on the log, which is 
  565. saved as ~/.ncftp/log, you can set the User log size field to a number greater 
  566. than zero. You probably do not want to let this file grow forever, so you set 
  567. the maximum size of the log by setting that field. 
  568.  
  569.  
  570. ΓòÉΓòÉΓòÉ 10.6. Max Bookmarks to Save ΓòÉΓòÉΓòÉ
  571.  
  572. Although the program is perfectly happy saving every site you ever open in the 
  573. bookmarks file, you may want to put an upper bound on the number of sites 
  574. saved. If you have a slow machine, which might cause the program to take awhile 
  575. to load and save the bookmarks, or if disk space is at a premium, you can set 
  576. the Max bookmarks to save field to limit the number of bookmarks saved. Once 
  577. that limit is reached, the program will discard sites whose time since the last 
  578. connection is the longest. In other words, a site you only called once a long 
  579. time ago and forgot about will be the first to go. 
  580.  
  581.  
  582. ΓòÉΓòÉΓòÉ 10.7. Pager ΓòÉΓòÉΓòÉ
  583.  
  584. Several of NcFTP's functions use an external pager program to view large 
  585. amounts of text.  For example, the page command retrieves a remote file and 
  586. uses the pager to view it. 
  587.  
  588. You can specify the program to use (and its command line flags, if any) by 
  589. setting the pager field. 
  590.  
  591. I recommend using LESS.EXE available from hobbes.nmsu.edu as: 
  592.  
  593.   ftp://hobbes.nmsu.edu/os2/unix/less291.zip 
  594.  
  595.  
  596. ΓòÉΓòÉΓòÉ 10.8. Progress Meter ΓòÉΓòÉΓòÉ
  597.  
  598. When you transfer files between the remote host and your local host, the 
  599. program uses a progress meter to show you the status of the transfer. The 
  600. program has a few different progress meters to choose from, and you can try out 
  601. the other ones by changing the Progress meter field. 
  602.  
  603.  
  604. ΓòÉΓòÉΓòÉ 10.9. Remote Messages ΓòÉΓòÉΓòÉ
  605.  
  606. You can control how much of the remote server's chatter is printed by changing 
  607. the Remote messages field. The program always prints error messages, but most 
  608. of the time the remote server doesn't have anything useful to say. There are a 
  609. couple of messages that may be worth printing. The first is the startup 
  610. message. Typically, when you connect to a server it has some important 
  611. information about the server. Some servers have chdir messages, which are sent 
  612. when you enter a special directory. You specify whether to print these messages 
  613. by toggling the Remote messages field. 
  614.  
  615.  
  616. ΓòÉΓòÉΓòÉ 10.10. Startup in Local Dir ΓòÉΓòÉΓòÉ
  617.  
  618. By default, the program stays in the same directory you were in when you ran 
  619. the program, so that downloads will go in that directory. If you would like to 
  620. use a download directory so that all of your downloads go to a specific 
  621. directory, sepcify it here. This can prevent your from exceeding your quota, 
  622. and overwriting your other files. You can set the Startup in Local Dir field to 
  623. have the program change the local directory each time when the program starts 
  624. up. Then you know where to expect your downloads to end up. 
  625.  
  626.  
  627. ΓòÉΓòÉΓòÉ 10.11. Startup Messages ΓòÉΓòÉΓòÉ
  628.  
  629. The program itself has some messages which you may get tired of and want to 
  630. turn off. You can change the Startup messages field to specify whether the 
  631. program prints its splash screen and whether it prints a tip on how to maximize 
  632. use of the program. 
  633.  
  634.  
  635. ΓòÉΓòÉΓòÉ 10.12. Network Timeout ΓòÉΓòÉΓòÉ
  636.  
  637. Specifies the amount of time in seconds before NcFTP gives up trying to 
  638. communicate with the remote host. 
  639.  
  640.  
  641. ΓòÉΓòÉΓòÉ 10.13. Trace Logging ΓòÉΓòÉΓòÉ
  642.  
  643. Turns on or off trace logging.  When trace logging is on, NcFTP will create a 
  644. trace file in your ~/.ncftp directory that contains useful debugging 
  645. information about the last session. 
  646.  
  647.  
  648. ΓòÉΓòÉΓòÉ 10.14. File Timestamps ΓòÉΓòÉΓòÉ
  649.  
  650. When you retrieve a remote file, by default the program tries to also set the 
  651. exact modification time of the local file as the remote file. You can turn that 
  652. off by changing the File timestamps field. 
  653.  
  654.  
  655. ΓòÉΓòÉΓòÉ 10.15. Screen Graphics ΓòÉΓòÉΓòÉ
  656.  
  657. If you don't like the full-screen graphics, you can use the line- oriented mode 
  658. by changing the Screen graphics field. Once you turn visual mode off from the 
  659. Preferences screen, you won't be able to get back to the preferences screen 
  660. again when using line mode. To get back into visual mode, you can run the 
  661. program with the -V flag, like: 
  662.  
  663.    ncftp -V 
  664.  
  665. By default, NcFTP will only try once to open a remote site. You can set Redial 
  666. Attempts to a number greater than one, and NcFTP will automatically redial the 
  667. remote site if the connection failed. 
  668.  
  669.  
  670. ΓòÉΓòÉΓòÉ 10.16. Redial Attempts ΓòÉΓòÉΓòÉ
  671.  
  672. When redialing a remote system, NcFTP will sleep X number of seconds. You can 
  673. specify the amount of time to sleep between redial attempts. 
  674.  
  675.  
  676. ΓòÉΓòÉΓòÉ 10.17. Pause Between Redials ΓòÉΓòÉΓòÉ
  677.  
  678. Specifies the amount of time to sleep between redial attempts. 
  679.  
  680.  
  681. ΓòÉΓòÉΓòÉ 10.18. Pager in Separate Window ΓòÉΓòÉΓòÉ
  682.  
  683. NcFTP has the ability to start your pager program in a separate window by using 
  684. the bredir, bpage and bls commands. If you would like ALL pager related 
  685. commands to start in a separate window, set Pager In Separate Window to yes. 
  686.  
  687.  
  688. ΓòÉΓòÉΓòÉ 11. Running Behind a Firewall or Gateway ΓòÉΓòÉΓòÉ
  689.  
  690. NcFTP v2.3.0 will work with a firewall, gateway or a system that utilizes ip 
  691. masquerading.  To insure NcFTP functions properly, do the following: 
  692.  
  693. In 'prefs', set Default FTP mode to: 
  694.  
  695.   Passive, but fall back to port if needed 
  696.  
  697.         or 
  698.  
  699.   Passive FTP only (PASV) 
  700.  
  701. If you experience timeouts, increase the network timeout field in prefs. 
  702.  
  703.   Network timeout:     60 
  704.  
  705. Also, insure the remote host can handle PASV commands and that option is set to 
  706. yes in the bookmarks editor: 
  707.  
  708.   Can use passive FTP:   Yes 
  709.  
  710.  
  711. ΓòÉΓòÉΓòÉ 12. Color Configuration ΓòÉΓòÉΓòÉ
  712.  
  713. In addition to remote-host specific options and global options that are 
  714. user-configurable, NcFTP allows you to change the program's appearence by 
  715. editing the programs colors. Run the colors command from within the program. 
  716.  
  717. The NcFTP Screen is broken down into 4 areas, List, Prompt, Input and Status. 
  718. Below is a screen snapshot showing each area: 
  719.  
  720. ΓòöΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòù
  721. ΓòæPort Version: NcFTP v2.3.0 - OS/2                                        Γòæ
  722. Γòæ                                                                         Γòæ
  723. Γòæ                                                                         Γòæ
  724. ΓòæLocal Hostname: ecsnet.com                                               Γòæ
  725. Γòæ                                                                         Γòæ
  726. ΓòæTip: If you need to report a bug, send me a ~/.ncftp/trace file too. To  Γòæ
  727. Γòæ     enable tracing, turn on trace logging from the Prefs window, or typeΓòæ
  728. Γòæ     "set trace 1" from the command line. Then re-create your bug, quit  Γòæ
  729. Γòæ     the program, and send the trace file to mevans@ecsnet.com.          Γòæ
  730. Γòæ                                                                         Γòæ
  731. Γòæ                                                                         Γòæ
  732. Γòæ                              List Area                                 Γòæ
  733. Γòæ                                                                         Γòæ
  734. Γòæ                                                                         Γòæ
  735. Γòæ----------------------------------Status Bar----------------------------Γòæ
  736. ΓòæPrompt Area>      Input Area                                           Γòæ
  737. ΓòÜΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓò¥
  738.  
  739.  
  740. ΓòÉΓòÉΓòÉ 13. Command Reference ΓòÉΓòÉΓòÉ
  741.  
  742. Provides help on all NcFTP v2.3.0 commands. 
  743.  
  744.  
  745. ΓòÉΓòÉΓòÉ 13.1. ? -- Help ΓòÉΓòÉΓòÉ
  746.  
  747. Help from the command shell, the program prints the names of all of the 
  748. supported commands. From there, you can get specific help for a command by 
  749. typing the command after, for example: 
  750.  
  751.    ? open 
  752.  
  753. prints information about the open command. 
  754.  
  755.  
  756. ΓòÉΓòÉΓòÉ 13.2. ! -- OS/2 Shell ΓòÉΓòÉΓòÉ
  757.  
  758. Spawns a command shell.  To spawn a shell, just do: 
  759.  
  760.    ! 
  761.  
  762. You can also pass commands to the shell by placing the command to execute 
  763. immediately following the !, for example: 
  764.  
  765.     !dir/w 
  766.  
  767. will display a directory listing and then prompt the user to [Hit Return] to 
  768. continue. 
  769.  
  770. If a command is passed to the OS shell, NcFTP will prompt the user to [Hit 
  771. Return] when the command completes. If the program is shelled to OS/2, by using 
  772. only a !, NcFTP will not prompt the user to [Hit Return] upon exiting the 
  773. shell. 
  774.  
  775.  
  776. ΓòÉΓòÉΓòÉ 13.3. ascii -- Sets transfer type to ASCII ΓòÉΓòÉΓòÉ
  777.  
  778. Sets the file transfer type to ASCII text. In this mode, UNIX linefeeds will be 
  779. translated to Carriage Return / Linefeed pairs. The ascii command requires no 
  780. parameters. 
  781.  
  782.  
  783. ΓòÉΓòÉΓòÉ 13.4. bdir -- Background Dir (Directory in New Window) ΓòÉΓòÉΓòÉ
  784.  
  785. The bdir command prints a detailed directory listing to your in a separte 
  786. window. 
  787.  
  788. It tries to behave like UNIX's /bin/ls -l command. If the remote server seems 
  789. to be a UNIX host, you can also use the same flags you would with ls, for 
  790. instance 
  791.  
  792.     bdir -rt 
  793.  
  794. would try to act like 
  795.  
  796.     /bin/ls -lrt 
  797.  
  798. would on UNIX. 
  799.  
  800. Special Note: On large directory listings, you may have to scroll to the end of 
  801. the directory listing before NcFTP regains control. 
  802.  
  803.  
  804. ΓòÉΓòÉΓòÉ 13.5. binary -- Sets Transfer Type to binary ΓòÉΓòÉΓòÉ
  805.  
  806. Sets the file transfer type to Binary. In this mode, no translations are 
  807. performed between the local host and the remote host. 
  808.  
  809.  
  810. ΓòÉΓòÉΓòÉ 13.6. bls -- Background File Listing ΓòÉΓòÉΓòÉ
  811.  
  812. The bls command is equivalent to ls, only it feeds it's output to your pager in 
  813. a separate window. This command is primarily for line mode because directory 
  814. listings can scroll offscreen. If you do a normal ls while in visual mode, if 
  815. it would go offscreen, the built-in pager kicks in automatically. NcFTP v2.3.0 
  816. OS/2 Port Beta 6 12 
  817.  
  818.  
  819. ΓòÉΓòÉΓòÉ 13.7. bookmark -- Create / Update bookmark ΓòÉΓòÉΓòÉ
  820.  
  821. The bookmark command will create or update a bookmark using the current host 
  822. and directory. If you had logged into ftp.leo.org and were in the 
  823. /pub/os2/incoming directory, you can use the bookmark command to save this 
  824. information in the bookmarks file. 
  825.  
  826.   bookmark leo 
  827.  
  828. This would save ftp.leo.org in the bookmarks file with an alias of leo. 
  829.  
  830.  
  831. ΓòÉΓòÉΓòÉ 13.8. bookmarks -- Bookmark Editor ΓòÉΓòÉΓòÉ
  832.  
  833. The bookmarks command will take you into the Bookmark Editor Screen. See the 
  834. Bookmarks Section for more information. 
  835.  
  836.  
  837. ΓòÉΓòÉΓòÉ 13.9. bpage -- Background Browse Remote Files ΓòÉΓòÉΓòÉ
  838.  
  839. The bpage command lets you browse a remote file one page at a time in a 
  840. separate window. This is useful for reading README's on the remote host without 
  841. downloading them first. This command uses whatever program you have set the 
  842. pager field in the Preference screen to view the file. 
  843.  
  844. bpage can take multiple file names as parameters, meaning you can specify one 
  845. or several files to view, for example: 
  846.  
  847.    bpage 00index.txt newfiles 
  848.  
  849. would display both files, 00index.txt and newfiles using your pager in a 
  850. separate window. 
  851.  
  852.  
  853. ΓòÉΓòÉΓòÉ 13.10. bredir -- Background Re-display Last Directory ΓòÉΓòÉΓòÉ
  854.  
  855. The bredir command give you a way to re-display the last directory listing. The 
  856. program saves the output from the last dir or ls command you did, so if you 
  857. want to see it again you can do this without wasting network bandwidth. The 
  858. bredir command feeds the output to your pager in a separate window. 
  859.  
  860.  
  861. ΓòÉΓòÉΓòÉ 13.11. bye -- Close connections and Exit ΓòÉΓòÉΓòÉ
  862.  
  863. The bye command closes all connections and exits NcFTP. 
  864.  
  865.  
  866. ΓòÉΓòÉΓòÉ 13.12. cat -- Browse Remote Files ΓòÉΓòÉΓòÉ
  867.  
  868. The cat command lets you browse a remote file one page at a time. This is 
  869. useful for reading README's on the remote host without downloading them first. 
  870. This command uses the internal NcFTP viewer. 
  871.  
  872.  
  873. ΓòÉΓòÉΓòÉ 13.13. cd -- Change Remote Directory ΓòÉΓòÉΓòÉ
  874.  
  875. The cd command changes the working directory on the remote host. Use this 
  876. command to move to different areas on the remote server. If you just opened a 
  877. new site, you might be in the root directory. Perhaps there was a directory 
  878. called /pub/news/comp.sources.d that someone told you about. From the root 
  879. directory, you could: 
  880.  
  881.    cd pub 
  882.  
  883.    cd news 
  884.  
  885.    cd comp.sources.d 
  886.  
  887. or, more concisely, 
  888.  
  889.    cd /pub/news/comp.sources.d 
  890.  
  891. Then, commands such as get, put, and ls could be used to refer to items in that 
  892. directory. 
  893.  
  894.  
  895. ΓòÉΓòÉΓòÉ 13.14. close -- Close Connection with Remote Host ΓòÉΓòÉΓòÉ
  896.  
  897. The close command will disconnect from the remote host. If this is the first 
  898. time you have connected to this host, a new entry for this host will be placed 
  899. in your bookmarks file. 
  900.  
  901.  
  902. ΓòÉΓòÉΓòÉ 13.15. colors -- Color Configuration Editor ΓòÉΓòÉΓòÉ
  903.  
  904. The colors command takes you into the color configuration screen. Here you can 
  905. select your favorite foreground and background colors for NcFTP. 
  906.  
  907.  
  908. ΓòÉΓòÉΓòÉ 13.16. create -- Create empty file on Remote Host ΓòÉΓòÉΓòÉ
  909.  
  910. Sometimes it may be necessary to use the create command. This makes an empty 
  911. file on the remote host. This can be useful when you are unable to contact the 
  912. remote server's administrator, but hope someone in the know will spot your 
  913. file. For example, 
  914.  
  915.    create readline2.0.tar_is_corrupt 
  916.  
  917. might persuade someone to repost that file. 
  918.  
  919.  
  920. ΓòÉΓòÉΓòÉ 13.17. debug  -- Turns on/off debugging ΓòÉΓòÉΓòÉ
  921.  
  922. The debug command is mostly for use by me and the testers. You could type 
  923.  
  924.   debug 1 
  925.  
  926. to turn debugging mode on. Then you could see all messages between the program 
  927. and the remote server, and things that are printed only in debugging mode. If 
  928. you report a bug, I might ask you to send me a trace file. To do that, you 
  929. would run the program, and then type 
  930.  
  931.   debug trace 1 
  932.  
  933. debug without any arguments displays the current debug level. Valid debug 
  934. levels are 1 thur 5. 
  935.  
  936.  
  937. ΓòÉΓòÉΓòÉ 13.18. delete  -- Deletes remote files ΓòÉΓòÉΓòÉ
  938.  
  939. If you need to delete a remote file you can try the delete command. Much of the 
  940. time this won't work because you won't have the proper access permissions. 
  941.  
  942. This command is obsolete, you should use the rm command instead. 
  943.  
  944.  
  945. ΓòÉΓòÉΓòÉ 13.19. dir  -- Remote Detailed Directory Listing ΓòÉΓòÉΓòÉ
  946.  
  947. The dir command prints a detailed directory listing. It tries to behave like 
  948. UNIX's /bin/ls -l command. If the remote server seems to be a UNIX host, you 
  949. can also use the same flags you would with ls, for instance 
  950.  
  951.   dir -rt 
  952.  
  953. would try to act like 
  954.  
  955.   /bin/ls -lrt 
  956.  
  957. would on UNIX. 
  958.  
  959.  
  960. ΓòÉΓòÉΓòÉ 13.20. echo  -- Echo's string to console ΓòÉΓòÉΓòÉ
  961.  
  962. The echo command wouldn't seem very useful, but it can be nice for use with the 
  963. program's macros. It behaves like the equivalent command does under a UNIX 
  964. shell, but accepts some extra flags. All percent flags are fed through 
  965. strftime(4). So you could type 
  966.  
  967.    echo It is now %H:%M on %B %d. 
  968.  
  969. and you should get something like this printed on your screen: 
  970.  
  971.    It is now 19:00 on January 22. 
  972.  
  973. There are also at flags, which the program expands: 
  974.  
  975.    @H  : Name of connected host 
  976.  
  977.    @D  : Full pathname of remote current working directory 
  978.  
  979.    @J  : Short name of remote current working directory 
  980.  
  981.    @N  : Newline. 
  982.  
  983.    @n  : Bookmark name of connected host 
  984.  
  985. Example: 
  986.  
  987.    echo "Connected to @H at %H:%M." >> junk 
  988.  
  989. If you later looked at the contents of junk, it might say: 
  990.  
  991.    Connected to sphygmomanometer.unl.edu at 20:37. 
  992.  
  993.  
  994. ΓòÉΓòÉΓòÉ 13.21. exit  -- Exits NcFTP ΓòÉΓòÉΓòÉ
  995.  
  996. Closes all open connections and exits NcFTP. 
  997.  
  998.  
  999. ΓòÉΓòÉΓòÉ 13.22. get  -- Retrieves files from remote host ΓòÉΓòÉΓòÉ
  1000.  
  1001. The get command copies files from the current working directory on the remote 
  1002. host to your machine's current working directory. To place a copy of README in 
  1003. your local directory, you could try: 
  1004.  
  1005.    get README 
  1006.  
  1007. The get command has some powerful features which are described below, in 
  1008. SPECIAL DOWNLOADING FEATURES. 
  1009.  
  1010. Syntax: 
  1011.  
  1012. get [-flags] file1 [file2...] 
  1013.  
  1014.    Flags: 
  1015.  
  1016.      -C     : Force continuation (reget). 
  1017.  
  1018.      -f     : Force overwrite. 
  1019.  
  1020.      -G     : Don't use wildcard matching. 
  1021.  
  1022.      -R     : Recursive. Useful for fetching whole directories. 
  1023.  
  1024.      -n X    : Get selected files only if X days old or newer. 
  1025.  
  1026.      -z     : Get the remote file X, and name it to Y. 
  1027.  
  1028.     Examples: 
  1029.  
  1030.      get README 
  1031.  
  1032.      get README.* 
  1033.  
  1034.      get -G **Name.with.stars.in.it** 
  1035.  
  1036.      get -R new-files-directory 
  1037.  
  1038.      get -z WIN.INI ~/junk/windows-init-file", 
  1039.  
  1040.  
  1041. ΓòÉΓòÉΓòÉ 13.23. hosts  -- Edit settings for each remote host ΓòÉΓòÉΓòÉ
  1042.  
  1043. Edit the settings for each remote host 
  1044.  
  1045.  
  1046. ΓòÉΓòÉΓòÉ 13.24. lcd  -- Local Change Directory ΓòÉΓòÉΓòÉ
  1047.  
  1048. The lcd command is the first of a few l commands that work with the local host. 
  1049. This changes the current working directory on the local host. If you want to 
  1050. download files into a different local directory, you could use lcd to change to 
  1051. that directory and then do your downloads. 
  1052.  
  1053. Issuing an lcd with no parameters will change the local directory to the 
  1054. directory specified by the HOME environment variable. 
  1055.  
  1056.  
  1057. ΓòÉΓòÉΓòÉ 13.25. less  -- Views remote file one page at a time ΓòÉΓòÉΓòÉ
  1058.  
  1059. Views a file from the remote host one page at a time. 
  1060.  
  1061.  
  1062. ΓòÉΓòÉΓòÉ 13.26. lls  -- Local directory listing ΓòÉΓòÉΓòÉ
  1063.  
  1064. Another local command that comes in handy is the lls command, which runs OS/2's 
  1065. dir command on the local host and displays the results in the program's window. 
  1066. You can use the same flags with lls as you would in your command shell, so you 
  1067. can do things like: 
  1068.  
  1069.    lcd ~/doc 
  1070.  
  1071.    lls /w p*.txt 
  1072.  
  1073.  
  1074. ΓòÉΓòÉΓòÉ 13.27. lookup  -- Name server lookup ΓòÉΓòÉΓòÉ
  1075.  
  1076. The program also has a built-in interface to the name service via the lookup 
  1077. command. This means you can lookup entries for remote hosts, like: 
  1078.  
  1079.   lookup cse.unl.edu ftp.cs.unl.edu sphygmomanometer.unl.edu 
  1080.  
  1081. prints: 
  1082.  
  1083.   cse.unl.edu 129.93.33.1 
  1084.  
  1085.   typhoon.unl.edu 129.93.33.24 
  1086.  
  1087.   sphygmomanometer.unl.edu 129.93.33.126 
  1088.  
  1089. There is also a more detailed option, enabled with -v, i.e.: 
  1090.  
  1091.   lookup -v cse.unl.edu ftp.cs.unl.edu 
  1092.  
  1093.    prints: 
  1094.  
  1095.      cse.unl.edu: 
  1096.  
  1097.         Name: cse.unl.edu 
  1098.  
  1099.         Address: 129.93.33.1 
  1100.  
  1101.      ftp.cs.unl.edu: 
  1102.  
  1103.         Name: typhoon.unl.edu 
  1104.  
  1105.         Alias: ftp.cs.unl.edu 
  1106.  
  1107.         Address: 129.93.33.24  You can also give IP addresses, so this would 
  1108. work too: 
  1109.  
  1110.      lookup 129.93.33.24 
  1111.  
  1112.    prints: 
  1113.  
  1114.      typhoon.unl.edu 129.93.33.24 
  1115.  
  1116.  
  1117. ΓòÉΓòÉΓòÉ 13.28. lpage  -- Views local file one page at a time ΓòÉΓòÉΓòÉ
  1118.  
  1119. The lpage command views a local file one page at a time. By default, the 
  1120. program uses your pager program to view the files. You can choose to use the 
  1121. built-in pager by using the -b flag. Example: 
  1122.  
  1123.   lpage -b ~/.ncftp/bookmarks 
  1124.  
  1125.  
  1126. ΓòÉΓòÉΓòÉ 13.29. lpwd  -- Print local current directory ΓòÉΓòÉΓòÉ
  1127.  
  1128. The lpwd command is prints the current local directory. Use this command when 
  1129. you forget where you are on your local machine. 
  1130.  
  1131.  
  1132. ΓòÉΓòÉΓòÉ 13.30. ls  -- Remote brief directory listing ΓòÉΓòÉΓòÉ
  1133.  
  1134. The ls command prints a brief directory listing. It tries to behave like UNIX's 
  1135. /bin/ls -CF command. If the remote server seems to be a UNIX host, you can also 
  1136. use the same flags you would with ls, for instance    ls -rt  would try to act 
  1137. like    /bin/ls -CFrt  would on UNIX. 
  1138.  
  1139.  
  1140. ΓòÉΓòÉΓòÉ 13.31. mget  -- Multiple get ΓòÉΓòÉΓòÉ
  1141.  
  1142. This command is obsolete with NcFTP 2.3.0. Refer to the get command. 
  1143.  
  1144.  
  1145. ΓòÉΓòÉΓòÉ 13.32. mkdir  -- Make Remote Directory ΓòÉΓòÉΓòÉ
  1146.  
  1147. The mkdir command tries to create a new directory on the remote host. For many 
  1148. public archives, you won't have the proper access permissions to do that. 
  1149.  
  1150.  
  1151. ΓòÉΓòÉΓòÉ 13.33. more  -- Views remote file one page at a time ΓòÉΓòÉΓòÉ
  1152.  
  1153. Views a file from the remote host one page at a time 
  1154.  
  1155.  
  1156. ΓòÉΓòÉΓòÉ 13.34. mput  -- Multiple puts ΓòÉΓòÉΓòÉ
  1157.  
  1158. The mput command is there in case you need to upload multiple files to remote 
  1159. hosts. For example, if you wanted to send some files to a remote host, you 
  1160. could do:    lcd ~/docs/files    mput 02.txt 03.txt 05.txt 07.txt 11.txt  The 
  1161. mput command won't work if you don't have the proper access permissions on the 
  1162. remote host. Also, this command doesn't have any of the special features that 
  1163. the get command has, except for the -z option.  This command is obsolete in 
  1164. NcFTP 2.3.0, please refer to the put command. 
  1165.  
  1166.  
  1167. ΓòÉΓòÉΓòÉ 13.35. open  -- Opens a connections with remote host ΓòÉΓòÉΓòÉ
  1168.  
  1169. The open command connects you to a remote host. Many times, you will simply 
  1170. open a host without using any flags, but nonetheless the open command has some 
  1171. flags to enable certain features. 
  1172.  
  1173. To force an anonymous open, use the -a flag. On the ftp.probe.net machine, 
  1174. which is the official archive site for NcFTP, You may have a need to use both 
  1175. anonymous logins and user logins. The Bookmark Editor remembers type of login 
  1176. you used last, so if the last time was a user login, you could use the -a flag 
  1177. to switch back to the anonymous login type without having to use the Bookmark 
  1178. Editor to change that. 
  1179.  
  1180. Likewise, you could use the -u flag to force a user open. Then you could give 
  1181. your account name and password to access that account. 
  1182.  
  1183. Many of the big archive sites like wuarchive.wustl.edu are busy, so you aren't 
  1184. guaranteed a connection to them. The program lets you redial sites 
  1185. periodically, until a connection succeeds. Use the -r 
  1186.  
  1187. Redial itself has a few parameters. You can set the delay, in seconds, of the 
  1188. time spent waiting between redials. You can also have the program give up after 
  1189. a maximum number of redials is reached. Here's an example that fully utilizes 
  1190. redial mode: 
  1191.  
  1192.    open -r -d 75 -g 10 bowser.nintendo.co.jp 
  1193.  
  1194. The -r turns on redialing, the -d sets the redial delay to 75 seconds, and the 
  1195. -g flag limits redialing to 10 tries. If you like, you can just trust the 
  1196. default redial settings and only use -r. 
  1197.  
  1198. The open command will run the Bookmark Editor if you don't supply a hostname to 
  1199. open. You can use the Bookmark Editor to select a host and open it by hitting 
  1200. the return key. 
  1201.  
  1202. Syntax: 
  1203.  
  1204.    Flags: 
  1205.  
  1206.      -a   : Open anonymously. 
  1207.  
  1208.      -u   : Open with username and password prompt. 
  1209.  
  1210.      -p X  : Use port number X when opening. 
  1211.  
  1212.      -r   : Redial until connected. 
  1213.  
  1214.      -d X  : Redial, delaying X seconds between tries. 
  1215.  
  1216.      -g X  : Give up after X redials without connection. 
  1217.  
  1218.     Examples: 
  1219.  
  1220.      open sphygmomanometer.unl.edu 
  1221.  
  1222.      open -u bowser.nintendo.co.jp 
  1223.  
  1224.      open -r -d 75 -g 10 sphygmomanometer.unl.edu 
  1225.  
  1226.  
  1227. ΓòÉΓòÉΓòÉ 13.36. page  -- Browse remote file one page at a time ΓòÉΓòÉΓòÉ
  1228.  
  1229. The page command lets you browse a remote file one page at a time. This is 
  1230. useful for reading README's on the remote host without downloading them first. 
  1231. This command uses whatever program you have set the pager field in the 
  1232. Preferences screen to view the file. 
  1233.  
  1234.  
  1235. ΓòÉΓòÉΓòÉ 13.37. pdir  -- Remote detailed directory viewed thru pager ΓòÉΓòÉΓòÉ
  1236.  
  1237. The pdir and pls commands are equivalent to dir and ls respectively, only they 
  1238. feed their output to your pager. These commands are primarily for line mode 
  1239. because directory listings can scroll offscreen. If you do a normal ls while in 
  1240. visual mode, if it would go offscreen, the built-in pager kicks in 
  1241. automatically. Therefore it is not recommended to use pdir and pls while in 
  1242. visual mode. 
  1243.  
  1244.  
  1245. ΓòÉΓòÉΓòÉ 13.38. pls  -- Remote brief directory viewed thru pager ΓòÉΓòÉΓòÉ
  1246.  
  1247. The pdir and pls commands are equivalent to dir and ls respectively, only they 
  1248. feed their output to your pager. These commands are primarily for line mode 
  1249. because directory listings can scroll offscreen. If you do a normal ls while in 
  1250. visual mode, if it would go offscreen, the built-in pager kicks in 
  1251. automatically. Therefore it is not recommended to use pdir and pls while in 
  1252. visual mode. 
  1253.  
  1254.  
  1255. ΓòÉΓòÉΓòÉ 13.39. predir -- Redisplay remote directory thru pager ΓòÉΓòÉΓòÉ
  1256.  
  1257. The redir and predir commands give you a way to re-display the last directory 
  1258. listing. The program saves the output from the last dir or ls command you did, 
  1259. so if you want to see it again you can do this without wasting network 
  1260. bandwidth. The predir command is the same as redir, except that the output is 
  1261. fed to your pager. 
  1262.  
  1263.  
  1264. ΓòÉΓòÉΓòÉ 13.40. prefs -- Configure NcFTP's Options ΓòÉΓòÉΓòÉ
  1265.  
  1266. Lets you configure the program's settings (Visual mode only) 
  1267.  
  1268.  
  1269. ΓòÉΓòÉΓòÉ 13.41. put -- Upload file to remote host ΓòÉΓòÉΓòÉ
  1270.  
  1271. The put command allows you to upload files to a remote host. For example, if 
  1272. you wanted to send some files to a remote host, you could do: 
  1273.  
  1274.    lcd ~/docs/files
  1275.    put 02.txt 03.txt 05.txt 07.txt 11.txt
  1276.  
  1277. The put command won't work if you don't have the proper access permissions on 
  1278. the remote host. Also, this command doesn't have any of the special features 
  1279. that the get command has, except for the -z option. 
  1280.  
  1281. Syntax 
  1282.  
  1283.   put [-flags] file1 [file2...] sends a file to the remote host
  1284.  
  1285.    Flags:
  1286.  
  1287.     -z   : Send the local file X, and name the remote copy to Y.
  1288.  
  1289.    Examples:
  1290.     put README
  1291.     put -z ~/junk/windows-init-file WIN.INI
  1292.  
  1293.  
  1294. ΓòÉΓòÉΓòÉ 13.42. pwd -- Print current remote working directory ΓòÉΓòÉΓòÉ
  1295.  
  1296. The pwd command prints the current remote working directory. In visual mode, 
  1297. this is in the status bar. 
  1298.  
  1299.  
  1300. ΓòÉΓòÉΓòÉ 13.43. redir -- Redisplay remote directory ΓòÉΓòÉΓòÉ
  1301.  
  1302. The redir and predir commands give you a way to re-display the last directory 
  1303. listing. The program saves the output from the last dir or ls command you did, 
  1304. so if you want to see it again you can do this without wasting network 
  1305. bandwidth. The predir command is the same as redir, except that the output is 
  1306. fed to your pager. 
  1307.  
  1308.  
  1309. ΓòÉΓòÉΓòÉ 13.44. rename -- Rename remote file ΓòÉΓòÉΓòÉ
  1310.  
  1311. If you need to change the name of a remote file, you can use the rename 
  1312. command, like: 
  1313.  
  1314.   rename SPHYGMTR.TAR sphygmomanometer-2.3.1.tar 
  1315.  
  1316.  
  1317. ΓòÉΓòÉΓòÉ 13.45. rglob -- Test remote for wildcard matching ΓòÉΓòÉΓòÉ
  1318.  
  1319. Tests remote filename wildcard matching 
  1320.  
  1321.  
  1322. ΓòÉΓòÉΓòÉ 13.46. q -- Quit NcFTP ΓòÉΓòÉΓòÉ
  1323.  
  1324. Quits NcFTP 
  1325.  
  1326.  
  1327. ΓòÉΓòÉΓòÉ 13.47. quit -- Quit NcFTP ΓòÉΓòÉΓòÉ
  1328.  
  1329. Of course, when you finish using the program, type quit to end the program (You 
  1330. could also use bye, exit or ^D). 
  1331.  
  1332.  
  1333. ΓòÉΓòÉΓòÉ 13.48. quote -- Send commands to remote host ΓòÉΓòÉΓòÉ
  1334.  
  1335. The quote command can be used to send a direct FTP Protocol command to the 
  1336. remote server. Generally this isn't too useful to the average user (or me 
  1337. either). 
  1338.  
  1339.  
  1340. ΓòÉΓòÉΓòÉ 13.49. rhelp -- Display remote host help ΓòÉΓòÉΓòÉ
  1341.  
  1342. The rhelp command sends a help request to the remote server. The list of FTP 
  1343. Protocol commands is often printed, and sometimes some other information that 
  1344. is actually useful, like how to reach the site administrator. 
  1345.  
  1346. Depending on the remote server, you may be able to give a parameter to the 
  1347. server also, like: 
  1348.  
  1349.   rhelp NLST 
  1350.  
  1351. One server responded: 
  1352.  
  1353.   Syntax: NLST [ <sp> path-name ] 
  1354.  
  1355.  
  1356. ΓòÉΓòÉΓòÉ 13.50. rm -- Remove a remote file ΓòÉΓòÉΓòÉ
  1357.  
  1358. If you need to delete a remote file you can try the rm command. Much of the 
  1359. time this won't work because you won't have the proper access permissions. This 
  1360. command doesn't accept any flags, so you can't nuke a whole tree by using -rf 
  1361. flags like you can on UNIX. 
  1362.  
  1363.  
  1364. ΓòÉΓòÉΓòÉ 13.51. rmdir -- Remove a remote directory ΓòÉΓòÉΓòÉ
  1365.  
  1366. Similarly, the rmdir command removes a directory. Depending on the remote 
  1367. server, you may be able to remove a non-empty directory, so be careful. 
  1368.  
  1369.  
  1370. ΓòÉΓòÉΓòÉ 13.52. set -- Set NcFTP options ΓòÉΓòÉΓòÉ
  1371.  
  1372. The set command is provided for backward compatibility with older versions of 
  1373. the program, and is superseded by the prefs command. The basic syntax is: 
  1374.  
  1375.    set option value 
  1376.  
  1377. Where the option is the short name of the corresponding field in the 
  1378. Preferences screen. The short names of the preferences fields can be found by 
  1379. browsing your ~/.ncftp/prefs file. This command is mainly for use with line 
  1380. mode , but since that mode is no longer officially supported, The use of these 
  1381. commands should be discouraged. 
  1382.  
  1383. The list of valid set options are: 
  1384.  
  1385.         anonopen              Default open mode:
  1386.         anonpass              Anonymous password:
  1387.         blank-lines           Blank lines between cmds:
  1388.         ftp-mode              Default FTP mode:
  1389.         logsize               User log size:
  1390.         maxbookmarks          Max bookmarks to save:
  1391.         pager                 Pager:
  1392.         progress-meter        Progress meter:
  1393.         remote-msgs           Remote messages:
  1394.         startup-lcwd          Startup in Local Dir:
  1395.         startup-msgs          Startup messages:
  1396.         timeout               Network timeout:
  1397.         trace                 Trace logging:
  1398.         utime                 File timestamps:
  1399.         visual                Screen graphics:
  1400.         redialattempts        Redial Attempts:
  1401.         redialpause           Pause Between Redials:
  1402.         pagenewwin            Pager in Separate Window:
  1403.         quiet-mode            Turns on/off the beep:
  1404.         background-fullscreen Spawns viewer in Full Screen Session:
  1405.  
  1406.  
  1407. ΓòÉΓòÉΓòÉ 13.53. site -- Send site specific command to remote host ΓòÉΓòÉΓòÉ
  1408.  
  1409. One obscure command you may have to use someday is site. The FTP Protocol 
  1410. allows for site specific commands. These site commands vary of course, but one 
  1411. common sub-command that is useful that some sites support is chmod, i.e.: 
  1412.  
  1413.    site chmod 644 README 
  1414.  
  1415. Try doing one of these to see what the remote server supports, if any: 
  1416.  
  1417.    rhelp SITE    site help 
  1418.  
  1419.  
  1420. ΓòÉΓòÉΓòÉ 13.54. type -- Set transfer type (ascii, binary, image) ΓòÉΓòÉΓòÉ
  1421.  
  1422. You may need to change transfer types during the course of a session with a 
  1423. server. You can use the type command to do this. Try one of these: 
  1424.  
  1425.       type ascii 
  1426.       type binary 
  1427.       type image 
  1428.  
  1429.  
  1430. ΓòÉΓòÉΓòÉ 13.55. verbose -- Sets verbosity level of NcFTP ΓòÉΓòÉΓòÉ
  1431.  
  1432. Sets verbosity mode to 0, 1, 2, or 3 
  1433.  
  1434.  
  1435. ΓòÉΓòÉΓòÉ 13.56. version -- Display NcFTP's version ΓòÉΓòÉΓòÉ
  1436.  
  1437. If you ever need to contact me about the program, please familiarize yourself 
  1438. with the version command. This command dumps a lot of information that tells me 
  1439. which edition of the program you are using, and how it was installed on your 
  1440. system. Here's a way to save the output of this command to a file, so you can 
  1441. send it to me: 
  1442.  
  1443.   version > version.txt 
  1444.  
  1445.  
  1446. ΓòÉΓòÉΓòÉ 14. Special Downloading Features ΓòÉΓòÉΓòÉ
  1447.  
  1448. You probably already know that you use the get command to copy files on the 
  1449. remote host to the local host. But the get command has a few other tricks that 
  1450. you might find useful. First of all, ncftp skips files you already have. If you 
  1451. try to 
  1452.  
  1453.    get file24 
  1454.  
  1455. and there is a file named file24 in the current local directory already, the 
  1456. program uses some additional heuristics to determine if it should actually 
  1457. waste network bandwidth to download it again. 
  1458.  
  1459. The program tries to get the date and size of the remote file file24. If that 
  1460. file has the exact same date and size as the local file file24, the program 
  1461. will skip over that file. If the program could not get the date or size of the 
  1462. remote file, or the size differs, the program will go ahead and fetch the file. 
  1463.  
  1464. In addition, if the local file's date is newer than the remote file's date, the 
  1465. program skips the download because it concludes you already have a more recent 
  1466. version. 
  1467.  
  1468. What all this means for you is that you can use the program to mirror another 
  1469. archive. For example, you might have a task that requires you keep a mirror of 
  1470. all the files of a remote directory called files. In that directory, there 
  1471. might be dozens of files, some of which are updated occasionally. You could use 
  1472. ncftp to help you out by setting the appropriate local and remote directories, 
  1473. then simply doing: 
  1474.  
  1475.    get * 
  1476.  
  1477. The program will skip over the old files, and only download the files that you 
  1478. don't have or have been updated since the last time. 
  1479.  
  1480. Nonetheless, you may want to ignore the program's advice and download a file 
  1481. anyway, despite the program's thinking that you don't need to. You can use the 
  1482. -f flag with get to force a download: 
  1483.  
  1484.    get -f README 
  1485.  
  1486. You may also need to use the -C flag to force the program to continue 
  1487. downloading where it left off. This feature is called forced reget for 
  1488. historical reasons. 
  1489.  
  1490. You can also turn off wildcard matching with get by using the - G flag. Other 
  1491. FTP programs used the syntax 
  1492.  
  1493.    get remote-file [local-file] 
  1494.  
  1495. which allowed you to specify a local pathname for the file you were trying to 
  1496. download. NcFTP differs in that respect, and if you used the older programs, 
  1497. you would find that the program's behaves get more like those other program's 
  1498. mget command. This means that in NcFTP,that 
  1499.  
  1500.    get file01 file02 
  1501.  
  1502. tries to download remote files named file01 and file02. If you like, you can 
  1503. get that older behavior by using the -z flag, so: 
  1504.  
  1505.    get -z file01 ../junk/files/01.txt 
  1506.  
  1507. would get file01 and use the local name ../junk/files/01.txt. 
  1508.  
  1509. Another thing that get does is that you can use the -n flag to fetch files that 
  1510. are a certain number of days old or newer. If you just want to get the newest 
  1511. files at an archive, you don't have to use a full mirror. You can just say 
  1512. download all files that are 3 days old or newer. Do that by going to a 
  1513. directory, and trying: 
  1514.  
  1515.    get -n 3 * 
  1516.  
  1517. The program also has reget mode built into the get command. Other FTP programs 
  1518. provided a reget command, which was useful when you lost a connection during a 
  1519. download. Instead of the remote host resending the entire file, you could use 
  1520. the reget command to continue the transfer where it was cut off. 
  1521.  
  1522. NcFTP has this capability built-in, and it examines the date and size of the 
  1523. remote file and local file to determine if the program should continue where it 
  1524. left off last time. If the dates are the same, but the local file is smaller, 
  1525. the program attempts to reget. 
  1526.  
  1527. The last, and most wasteful feature of get is recursive mode, which is turned 
  1528. on with the -R flag. This feature lets you download an entire directory's 
  1529. contents, i.e.: 
  1530.  
  1531.    get -R /pub/info/help 
  1532.  
  1533. That creates a directory called ./help in the current local directory, and 
  1534. copies all files and subdirectories into it. 
  1535.  
  1536. Please use some discretion with this feature. If you get a large directory, you 
  1537. could really bog down the remote host. Archive administrators are providing a 
  1538. public service, so don't abuse the archive so much that they have to shut down 
  1539. public access because the real users of that archive can't get their work done. 
  1540.  
  1541.  
  1542. ΓòÉΓòÉΓòÉ 15. Macros ΓòÉΓòÉΓòÉ
  1543.  
  1544. The program has a simple macro/alias facility. You can use macros to roll your 
  1545. own commands, or do things when certain events happen. 
  1546.  
  1547. To use macros, you will need to create and edit the macros file in your .ncftp 
  1548. subdirectory of your home directory. Your ~/.ncftp directory is created for you 
  1549. automatically the first time you run the program, but you have to make the 
  1550. macros file yourself since most users won't have a need for them. 
  1551.  
  1552. You can have any number of macros. The syntax is: 
  1553.  
  1554.        macro macro-name
  1555.             macro-body...
  1556.        end
  1557.  
  1558. Here's a simple macro that users of the old ftp program might appreciate: 
  1559.  
  1560.        macro binary
  1561.             type i
  1562.        end
  1563.  
  1564. You could run that macro simply by running the program and typing the macro 
  1565. name as if it were a regular ncftp command. 
  1566.  
  1567. Macros can also have parameters, much like the Korn Shell's shell functions and 
  1568. the C-Shell's aliases. These parameters are sent to your macro, and if your 
  1569. macro uses the appropriate dollar variables, they are expanded. To illustrate, 
  1570. try this macro: 
  1571.  
  1572.        macro cdls
  1573.             cd $1
  1574.             ls
  1575.        end
  1576.  
  1577. To run that macro, open a connection and try: 
  1578.  
  1579.     cdls /pub 
  1580.  
  1581. That would try to cd to /pub, and then try to list its contents with ls. 
  1582.  
  1583. Dollar variables are somewhat like those in the Bourne and Korn shells. Example 
  1584. syntax: 
  1585.  
  1586.        $4      : Argument4
  1587.        $*      : All arguments.
  1588.        $@      : All arguments, each of them surrounded by double quotes.
  1589.        $(2-5)  : Arguments 2, 3, 4, and 5.
  1590.        $(2,5)  : Arguments 2 and 5.
  1591.        $(3+)   : Arguments 3, 4, 5, ..., N.
  1592.  
  1593. A better way to code the cdls macro might be: 
  1594.  
  1595.        macro cdls
  1596.             cd $1
  1597.             ls $(2+)
  1598.        end
  1599.  
  1600. There are some special macros, called event macros . The program looks for 
  1601. macros by special names, and if they exist, runs the macro when that event 
  1602. happens. 
  1603.  
  1604. One event macro is the .start.ncftp macro. If you have a macro by that name 
  1605. defined in your macros file, the program will run that macro each time you run 
  1606. the program. 
  1607.  
  1608. Similarly, there is also a .quit.ncftp macro that is run each time you quit the 
  1609. program. 
  1610.  
  1611. Another set of event macros are site-specific. For example, if you have a site 
  1612. bookmarked as typhoon You could then define macros named .open.typhoon and 
  1613. .close.typhoon which would run each time you opened and closed typhoon. 
  1614.  
  1615. Another, more generic set of event macros are the .open.any and .close.any 
  1616. macros which run when you open or close any site. One possible use for these 
  1617. macros is to run separate shell scripts to do some processing after you finish 
  1618. using a site. You could have a macro like this: 
  1619.  
  1620.      macro .quit.ncftp
  1621.           echo "Started post-processing downloads at %H:%M:%S"
  1622.           !sh ~/scripts/download-decoder
  1623.           echo "Finished post-processing downloads at %H:%M:%S"
  1624.      end
  1625. Another use is to duplicate the old macdef init hack that the traditional ftp 
  1626. program used in its .netrc file. For example: 
  1627.  
  1628.      macro .open.infomac
  1629.           echo "Getting recent files list"
  1630.           get -z /pub/info-mac/help/recent-files ~/docs/recent
  1631.           ls -lrt
  1632.      end
  1633.  
  1634.  
  1635. ΓòÉΓòÉΓòÉ 16. Using Colon Mode ΓòÉΓòÉΓòÉ
  1636.  
  1637.  The colon-mode feature is used from your shell's command line. 
  1638.  
  1639. In ancient times, way back during the Disco Era, you could use a program called 
  1640. tftp to fetch a file using the Internet standard Trivial File Transfer 
  1641. Protocol. You could use that program to do something like this from within its 
  1642. shell: 
  1643.  
  1644.    get wuarchive.wustl.edu:/graphics/gif/README 
  1645.  
  1646. and that would call wuarchive and fetch the README file. 
  1647.  
  1648. You can use this program to do the same thing from your shell's command line: 
  1649.  
  1650.      csh> ncftp wuarchive.wustl.edu:/graphics/gif/README
  1651.      csh> head README
  1652.  
  1653. This tells your shell, in this case the C-shell to run NcFTP, which would open 
  1654. wuarchive, fetch /graphics/gif/README and write the file /README in the current 
  1655. working directory, and then exits. 
  1656.  
  1657. The colon-mode feature is nice if you don't want to browse around the remote 
  1658. site, and you know exactly want you want. It also comes in handy in shell 
  1659. scripts, where you don't want to enter the command shell, and might not want 
  1660. the program to spew output. 
  1661.  
  1662. You can use the Uniform Resource Locator standard also. For example, this would 
  1663. work: 
  1664.  
  1665.      csh> ncftp ftp://wuarchive.wustl.edu/graphics/gif/README
  1666.  
  1667. There are times where you might not want the program to write a colon-mode file 
  1668. in the current working directory, or perhaps you want to pipe the output of a 
  1669. remote file into something else. Colon-mode has options to do this. It was 
  1670. inspired by the guy who wrote the ftpcat perl script. The -c option tells the 
  1671. program to write on the standard output stream. The -m option pipes the file 
  1672. into your pager (like ). Of course this won't work if the more thing you give 
  1673. colon-mode is a directory! This example just dumps a remote file to stdout: 
  1674.  
  1675.      csh> ncftp -c wuarc:/graphics/gif/README
  1676.  
  1677. This example redirects a remote file into a different location: 
  1678.  
  1679.      csh> ncftp -c wu:/README > ~pdietz/thesis.tex
  1680.  
  1681. This one shows how to use a pipeline: 
  1682.  
  1683.      csh> ncftp -c wuarc:/README | tail | wc -l 10
  1684.      csh>
  1685.  
  1686. This shows how to page a remote file: 
  1687.  
  1688.      csh> ncftp -m wuarc:/graphics/gif/README
  1689.  
  1690. CAUTION:
  1691. NcFTP will place files in the current directory when using colon mode.
  1692.  
  1693.  
  1694. ΓòÉΓòÉΓòÉ 17. Using Line Mode ΓòÉΓòÉΓòÉ
  1695.  
  1696. The only reason line mode is provided is so that the primitive operating 
  1697. systems whose curses library is missing or dysfunctional won't render the 
  1698. program completely useless. 
  1699.  
  1700. exceptions of the functions that require visual mode, such as the Preferences 
  1701. screen and the Bookmark Editor . You will have to edit the ~/.ncftp/prefs and 
  1702. ~/.ncftp/bookmarks file manually, with a text editor. 
  1703.  
  1704. As a small consolation, you get to use the full-powered line- editing 
  1705. libraries, like GNU Readline if they were compiled with the program. 
  1706.  
  1707.  
  1708. ΓòÉΓòÉΓòÉ 18. Summary of Command Line Options ΓòÉΓòÉΓòÉ
  1709.  
  1710. When you invoke the program from your shell, there are dash flags you can use 
  1711. like you can with most other UNIX programs. 
  1712.  
  1713. Here's a list of options you can use from the command line: 
  1714.  
  1715.      -D   : Turns on debugging mode and tracing.
  1716.      -V   : Uses visual mode for this session.
  1717.      -L   : Uses line mode for this session.
  1718.      -H   : Prints the information from the version command and exits.
  1719.  
  1720. When you turn on tracing, the program writes a log with debugging information 
  1721. to a file called trace in your subdirectory of .ncftp your home directory. If 
  1722. you need to report a bug, it would be helpful to mail me the file so I can 
  1723. track it down better. trace 
  1724.  
  1725. In addition to the program flags, you can also use flags from the open and get 
  1726. commands with a colon mode path. Here's a really complex example: 
  1727.  
  1728.      csh> ncftp -r -d 120 -n 3 sphygmomanometer.unl.edu:/pub/stuff/*
  1729.  
  1730. This tries redialing that host every two minutes, and fetching all files from 
  1731. the /pub/stuff directory that are 3 days old or newer. 
  1732.  
  1733.  
  1734. ΓòÉΓòÉΓòÉ 19. Author ΓòÉΓòÉΓòÉ
  1735.  
  1736. NcFTP was written by Mike Gleason, NCEMRSoft (mgleason@probe.net). NcFTP is 
  1737. copyrighted 1995 by NCEMRSoft. All rights reserved. 
  1738.  
  1739. As of this writing, the most recent version is archived in /pub/ncftp, on 
  1740. ftp.probe.net. 
  1741.  
  1742. The OS/2 Port of NcFTP v2.3.0 was done by Mark R. Evans (mevans@ecsnet.com). 
  1743.  
  1744.  
  1745. ΓòÉΓòÉΓòÉ 20. Thanks ΓòÉΓòÉΓòÉ
  1746.  
  1747. Ideas and some code contributed by my partner, Phil Dietz, NCEMRSoft 
  1748. (dietz@wtc.com). 
  1749.  
  1750. Thanks to everyone who has helped test the program, and sent in feedback over 
  1751. the years. Your support is what drives me to improve the program! 
  1752.  
  1753. I'd like to thank my former system administrators, most notably Charles Daniel, 
  1754. for making testing on a variety of platforms possible, letting me have some 
  1755. extra disk space, and for maintaining the UNL FTP site. 
  1756.  
  1757. I also thank Dale Botkin and Tim Russell at Probe Technology, for giving ncftp 
  1758. a home on probe.net, the midwest's best connection to the internet. 
  1759.  
  1760. For testing above and beyond the call of duty, I am especially grateful to: 
  1761. Phil Dietz, Kok Hon Yin (hkok@cse.unl.edu), Andrey A. Chernov 
  1762. (ache@astral.msk.su). 
  1763.  
  1764. Thanks to Tim MacKenzie (t.mackenzie@trl.oz.au) for the filename completion 
  1765. code. 
  1766.  
  1767. Thanks to DaviD W. Sanderson (dws@ssec.wisc.edu), for helping me out with the 
  1768. man page. 
  1769.  
  1770.  
  1771. ΓòÉΓòÉΓòÉ 21. Thanks From Mark Evans ΓòÉΓòÉΓòÉ
  1772.  
  1773. I would like to thank Eberhard Mattes for his emx development environment. 
  1774. Without his efforts, this port would not be possible. 
  1775.  
  1776. Also, I would like to thank Steve Willer for his original port of NcFTP v1.9.3. 
  1777. He did an excellent job and came up with some inovative ideas which I have 
  1778. included with this port. 
  1779.  
  1780. Last but not least, the group that helped me beta test this port and put up 
  1781. with my programming errors and almost daily betas: 
  1782.  
  1783.      macwarp@ix.netcom.com    John McNamara
  1784.      bob@bridge.net           Bob Lyons
  1785.      oscar@primenet.com       Oscar Fowler
  1786.      gunter@htlsun1.fzk.de    Gunter Spranz
  1787.      acowan@uoguelph.ca       Andrew Cowan
  1788.      rob@iconz.co.nz          Rob
  1789.      beaufour@mailhost.net    Allan Beaufour Larsen
  1790.      phydoux@utw.com          Michael Monsen
  1791.      satori@ibm.com           Patrick McKane
  1792.      morpheaus@kuwait.net     Ahmad Al-Nusif
  1793.  
  1794.  
  1795. ΓòÉΓòÉΓòÉ 22. Bugs ΓòÉΓòÉΓòÉ
  1796.  
  1797. Due to a limitation in the curses library, scrolling may be slow in visual 
  1798. mode. 
  1799.  
  1800. Shell escapes, suspending (^Z) and resuming, and interruping (^C) still have 
  1801. quirks with visual mode. 
  1802.  
  1803. There are no such sites named bowser.nintendo.co.jp or 
  1804. sphygmomanometer.unl.edu. 
  1805.  
  1806.  
  1807. ΓòÉΓòÉΓòÉ 23. Bugs in the OS/2 Port ΓòÉΓòÉΓòÉ
  1808.  
  1809. During a transfer, Ctrl-C will abort the transfer. Subsequent Ctrl-C's from a 
  1810. transfer will close the connection with the host. 
  1811.  
  1812.                                 * * *
  1813.  
  1814.        ALL BUG REPORTS FOR THE OS/2 PORT OF NcFTP V2.3.0 SHOULD
  1815.               BE SENT TO Mark Evans (mevans@ecsnet.com)
  1816.  
  1817.                                 * * *
  1818.  
  1819.  
  1820. ΓòÉΓòÉΓòÉ 24. Revision History ΓòÉΓòÉΓòÉ
  1821.  
  1822. 02-17-96   Release 2.3.0.OS2 Beta 9 Public Beta 
  1823.  
  1824.      Fix: The new 'auto-reget' feature added in Beta 8 broke the forced 
  1825.       overwrite function.  This has been fixed and the auto-reget code has been 
  1826.       enhanced to be a little smarter. 
  1827.  
  1828.      Chg: Fixed NcFTP's ability to display DBCS.  This should allow Chineese 
  1829.       character sets to be displayed properly.  Please provide feedback if this 
  1830.       does not work. 
  1831.  
  1832.      Add: Added firewall.txt document.  This better documents how to run NcFTP 
  1833.       behind a firewall or gateway. 
  1834.  
  1835.      Chg: NcFTP is now much smarter about determining your home directory 
  1836.       (where it places it's config files). 
  1837.  
  1838.       If you have a conflict with the HOME environment var, you can use 
  1839.       NCFTPDIR instead. 
  1840.  
  1841.       If you do not have a HOME or NCFTPDIR environment var set, NcFTP will 
  1842.       default to the ETC environment variable. If it is not set, NcFTP will 
  1843.       display a warning message that it cannot find a home and will not save 
  1844.       preferences. 
  1845.  
  1846.      Fix: In the last release, I thought I had fixed the problem with pag 
  1847.       *.txt not pausing between files.  Under certain circumstances, this still 
  1848.       didn't work.  It should now function properly. 
  1849.  
  1850.      Chg: If you change your download directory in the prefs screen, NcFTP 
  1851.       immediately changes to that new directory. 
  1852.  
  1853.      Chg: Changed the .SUBJECT extended attribute to be an ftp URL showing 
  1854.       where the file was ftp'ed from. 
  1855.  
  1856.      Chg: Before, NcFTP would query the file system, if it was not equal to 
  1857.       HPFS it would use FAT naming conventions. Now, NcFTP checks if FAT, if 
  1858.       not, uses long names. 
  1859.  
  1860.      Fix: Local directory commands such as LLS were broken when using CMD.EXE 
  1861.       as the shell. 
  1862.  
  1863.  02-03-96   Release 2.3.0.OS2 Beta 8 Public Beta 
  1864.  
  1865.      Fix: Although the original documentation from the Unix version of NcFTP 
  1866.       v2.3.0 claimed that reget was automatic, it was never implemented in the 
  1867.       code.  Reget support is only there if you specify the -C switch on the 
  1868.       get command.  I have added support for automatic reget and it should work 
  1869.       without adding the -C command line switch.  If there are any problems 
  1870.       with this, please let me know. 
  1871.  
  1872.      Fix: Passive mode did not work properly for those running behind a 
  1873.       firewall.  I believe this is fixed now, if not PLEASE let me know. 
  1874.  
  1875.      Fix: page *.txt when using more.com as the pager would not pause at end 
  1876.       of the file. 
  1877.  
  1878.      Fix: Bookmark editor allows you to jump to host names by using uppercase 
  1879.       letters.  This did not work properly when bookmark names had uppercase 
  1880.       names. 
  1881.  
  1882.      Fix: bdir would not reset the output to stdout when host transmission was 
  1883.       interrupted.  Output would go to the second window. 
  1884.  
  1885.      Fix: Prefs - Q -Redial Pause time would default to 60 seconds when you 
  1886.       specified 0 as the delay time. 
  1887.  
  1888.      Add: Added a new 'hidden' option:  background-fullscreen If you add 
  1889.       background-fullscreen 1 to your prefs file, all b* commands (bdir, bpage, 
  1890.       etc), will spawn a full screen session instead of a window. 
  1891.  
  1892.      Add: F1 key will now call "view ncftp.inf" from within NcFTP. 
  1893.  
  1894.      Fix: Under certain conditions, editing the bookmarks file would cause the 
  1895.       program to trap. 
  1896.  
  1897.      Fix: All keypad keys now work. 
  1898.  
  1899.      Fix: When lines wrapped, NcFTP would not properly count them and you 
  1900.       would loose a line from the display. 
  1901.  
  1902.      Add: Included an icon for NcFTP in the release archive. 
  1903.  
  1904.  01-27-96   Release 2.3.0.OS2 Beta 7 Public Beta 
  1905.  
  1906.      Chg: Moved NcFTP Documentation to an OS/2 .inf file. 
  1907.  
  1908.      Chg: Improved NcFTP's process semaphore handling. 
  1909.  
  1910.      Fix: NcFTP would open files in ASCII mode on systems that do not support 
  1911.       the SIZE or MDTM commands. 
  1912.  
  1913.      Fix: NcFTP no longer requires GNU File Utilities to work. It now uses 
  1914.       OS/2's internal commands (or 4OS2's). 
  1915.  
  1916.      Fix: pls and pdir caused a [Hit Return] to be printed when it was not 
  1917.       necessary. 
  1918.  
  1919.      Fix: If you do a 'forced reget' on a site that does not support this 
  1920.       command, the Stat Progress Meter would not display the correct download 
  1921.       count. 
  1922.  
  1923.      Enh: Added 'quiet-mode' to preferences file. When set to 1 (TRUE), it 
  1924.       will supress all beeps that NcFTP uses to alert you of something. 
  1925.  
  1926.       To turn this option on, you must manually edit the $(HOME)\.ncftp\prefs 
  1927.       file and put the line: 
  1928.  
  1929.             quiet-mode 1 
  1930.  
  1931.       Sorry, but I'm out of room on the preferences screen! 
  1932.  
  1933.      Chg: When aborting a long directory listing, NcFTP actually has to 
  1934.       complete the transfer.  I have added a msg that displays when you hit 'q' 
  1935.       stating that the transfer is aborting. 
  1936.  
  1937.      Enh: Added option to hosts editor to Save Directory on Exit. Each time 
  1938.       you log into an ftp site, the directory you were last in is saved.  If 
  1939.       you do not want NcFTP to save the last directory, and always use the 
  1940.       directory specified in the 'Directory' field, set 'Save Dir on Exit' to 
  1941.       'NO'. 
  1942.  
  1943.      Add: Wrote a small utility to convert your old v1.9.3 ncrecent file into 
  1944.       a v2.3.0 ~/.ncftp/bookmarks file. 
  1945.  
  1946.       This utility will add to, not delete your existing bookmarks file. 
  1947.  
  1948.       Pgm Name: ncf-1to2.exe 
  1949.  
  1950.  01-22-96   Release 2.3.0.OS2 Beta 6 - Public Beta 
  1951.  
  1952.      Fix: Changed error message on domain name not found to tell user to set 
  1953.       domain name. 
  1954.  
  1955.      Fix: Ctrl-C would exit NcFTP. 
  1956.  
  1957.      Fix: When re-dialing, you would have to hit Ctrl-C multiple times to stop 
  1958.       re-dialing.  Also, it would sometimes completely abort NcFTP. 
  1959.  
  1960.  01-21-96   Release 2.3.0.OS2 Beta 5 
  1961.  
  1962.      Enh: NcFTP is much smarter when dealing with command shells. If you 
  1963.       simply do a ! to shell to OS/2, it will not prompt you to [Hit Enter], 
  1964.       but if you run a command, it will pause so you can see the output. 
  1965.  
  1966.       Also, it automatically senses when you are using the the OS/2 more.com 
  1967.       command and will always prompt you to [Hit Return] when it finishes. 
  1968.  
  1969.      Fix: When using the OS/2 more command for your pager, files were being 
  1970.       transfered in binary mode, not translating the LF to a CRLF, causing the 
  1971.       screen to be unreadable. 
  1972.  
  1973.      Enh: Added transfer mode to all status meters. 
  1974.  
  1975.      Fix: If NcFTP cannot determine the HOSTNAME, it will search the 
  1976.       environment for HOSTNAME=???? and use that value as the hostname. 
  1977.  
  1978.       If NcFTP cannot determine the DOMAIN, it will search the environment for 
  1979.       DOMAIN=??? and use that value as the hostname. 
  1980.  
  1981.      Fix: lpage * would try to display directory names. 
  1982.  
  1983.      Fix: put * would try to send directory names. 
  1984.  
  1985.      Fix: get -R * had problems on certain systems.  I think I have it working 
  1986.       properly all the time. 
  1987.  
  1988.      Fix: NcFTP was not always setting the local file time to that of the 
  1989.       server.  It would set the local time 1 second less than the remote file, 
  1990.       causing re-gets. 
  1991.  
  1992.      Fix: mput or put with multiple files did not work.  I have fixed this in 
  1993.       the code, but it requires that LS.EXE be on your system.  NcFTP gets it's 
  1994.       file info from the output of LS.EXE. 
  1995.  
  1996.      Fix: lpage caused a [Hit Return] when it was opened in another window.  A 
  1997.       few other stray [Hit Return]'s were removed. 
  1998.  
  1999.      Chg: The 'Escape' key now clears the input line like OS/2. 
  2000.  
  2001.      Fix: The keypad Enter key now works. 
  2002.  
  2003.  01-19-96   Release 2.3.0.OS2 Beta 4 
  2004.  
  2005.      Fix: I didn't completely fix the problem with local files being closed 
  2006.       when aborting a transfer. I believe they are all fixed now. 
  2007.  
  2008.      Fix: The Progress Stat Meter is now _REALLY_ fixed. 
  2009.  
  2010.      Fix: Domain name not found error message removed and a work around put 
  2011.       into place. 
  2012.  
  2013.      Fix: Timeouts after transfers.  I have increased the timeout period and 
  2014.       this should solve the problem. 
  2015.  
  2016.      Fix: Ctrl-C only worked on the first open command.  It now works every 
  2017.       time. 
  2018.  
  2019.      Fix: lpage command would not display in a separate window when Pager in 
  2020.       separate window was enabled. 
  2021.  
  2022.      Chg: Now do a clear screen before calling shell. 
  2023.  
  2024.      Chg: Added [Hit Return] after shell commands. 
  2025.  
  2026.  01-17-96   Release 2.3.0.OS2 Beta 3 
  2027.  
  2028.      Fix: Local files were not closed properly when aborting a transfer (only 
  2029.       occured on sites that do not support the ABOR command). 
  2030.  
  2031.      Fix: Progress Stat Meter did not display the proper number of bytes 
  2032.       recieved when doing a reget. 
  2033.  
  2034.      Fix: Could not perform a 'get' after an aborted get. 
  2035.  
  2036.      Fix: Recursive gets on a FAT partition would store the full path in the 
  2037.       extended attribute. 
  2038.  
  2039.      Chg: Talked with the original author, Mike Gleason and we have reached an 
  2040.       agreement on screen changes concerning his name and copyright. 
  2041.  
  2042.      Chg: No longer use the 'i.am.running' file to indicate NcFTP is running. 
  2043.       I'm using OS/2 semaphores, which works much better incase one session 
  2044.       crashes, there is no cleanup required with semaphores, OS/2 closes them 
  2045.       automatically. 
  2046.  
  2047.      Add: Now write: "Retrieved from [hostname]" as the .SUBJECT extended 
  2048.       attribute.  Nice to help you remember where things came from. 
  2049.  
  2050.      Add: Added 3 new items to the preferences screen: 
  2051.  
  2052.                                 Maximum Redials
  2053.                                 Redial Delay
  2054.                                 Pager in new window
  2055.  
  2056.       Max Redials let's you set the auto-redial as the default. If it is set to 
  2057.       anything greater than 1, if you get a 'Max Users logged on' msg from the 
  2058.       host, NcFTP will automatically try again until it is logged in or hits 
  2059.       the maximum number of redials.  This option is also available on a per 
  2060.       'open' instance thru the open command. 
  2061.  
  2062.       Redial Delay is the amount of time to pause between redials. 
  2063.  
  2064.       Pager in new window will start your pager program in a separate window 
  2065.       for all pager related commands, pdir, pls, page, more, etc. 
  2066.  
  2067.  01-15-96   Release 2.3.0.OS2 Beta 2 
  2068.  
  2069.      Fix: There were several places where / was being used on the local 
  2070.       directory or file paths.  I've changed all these to \, I hope.  Also, the 
  2071.       mkdir command was not working, it was passing a -p command switch that is 
  2072.       not valid for OS/2 environments. Gunter found this problem when doing a 
  2073.       get -R * on a directory, Good Work! 
  2074.  
  2075.      Enh: This version is 'colorized'.  You can now edit the colors using the 
  2076.       colors command.  This creates a file called colors in the  ~/.ncftp 
  2077.       directory. 
  2078.  
  2079.       Here's a description of the 4 types of windows you can configure. 
  2080.  
  2081.  
  2082.                   +---------------------------------+
  2083.                   |                                 |
  2084.                   |                                 |
  2085.                   |                                 |
  2086.                   |                                 |
  2087.                   |          List Window            |
  2088.                   |                                 |
  2089.                   |                                 |
  2090.                   |                                 |
  2091.                   |                                 |
  2092.                   +---------------------------------+
  2093.                   |         Status Window           |
  2094.                   +---------------------------------+
  2095.                   |Prompt>   Input Window           |
  2096.                   +---------------------------------+
  2097.  
  2098.      Add: Borrowed some ideas from the original port (v1.9.3 by Steve Willer) 
  2099.       and added the following commands: 
  2100.  
  2101.                         bpage
  2102.                         bls
  2103.                         bdir
  2104.                         bredir
  2105.  
  2106.       These commands display items through your pager, except they open a new 
  2107.       window for the pager.  Very nice for displaying a large directory list in 
  2108.       one window and then grabbing files with NcFTP in it's window. 
  2109.  
  2110.       One anomoly I've noticed, on large directory listings or files, you may 
  2111.       need to page down to the end of the file before NcFTP allows you to enter 
  2112.       commands.  It appears the whole transfer must complete before NcFTP 
  2113.       regains control. 
  2114.  
  2115.  01-13-96   Release 2.3.0.OS2 Beta 1 
  2116.  
  2117.  Completed initial port from Unix.  The following features have been added: 
  2118.  
  2119.      Support for FAT partitions.  NcFTP will create _ncftp directory under the 
  2120.       $HOME directory. 
  2121.  
  2122.      File transfers to FAT partitions that do not conform to the 8.3 naming 
  2123.       convention will have their names munged into something that works for 
  2124.       FAT.  The original filename will be placed in the files extended 
  2125.       attribute. 
  2126.  
  2127.      Local file directories will use \ instead of /. 
  2128.  
  2129.      This version of NcFTP uses the ~ character as the escape character.  The 
  2130.       unix version uses the \. 
  2131.  
  2132.      Transfers will timeout just like the unix version.  But, I may have the 
  2133.       timeouts set too low. 
  2134.